﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
  <xsl:output method="html" indent="yes"/>

  <!-- Begin parameters declaration -->
  <!--<xsl:param name="EnvironmentTarget" select="'EV1'" />-->
  <xsl:param name="ApplicationFriendlyName" select="'Portail Gérants PG2014 FULL BJR'" />
  <!-- End parameters declaration -->

  <xsl:template match="/">
    <html>
      <body>
        <style>
          body
          {
          font-family: "Segoe UI Semibold","Segoe UI","Lucida Grande",Verdana,Arial,Helvetica,sans-serif;
          width:95%;
          }

          .layout
          {
          padding: 20px;
          width: 100%;
          background-color: #ffffff;
          }


          .HeaderDeploymentLog
          {
          color: #313131;
          font-size: 1.75em;
          font-weight: normal;
          margin: 0 0 12px;
          padding: 0;
          }

          .Title
          {
          color: #260859;
          font-size: 1.25em;
          font-weight: normal;
          margin: 20px 0 20px;
          padding: 3 3 3 3;
          background-color: #C0C0C0;
          }


          table th {
          color: #ffffff;
          background-color: #555555;
          border: 1px solid #555555;
          padding: 3px;
          vertical-align: top;
          text-align: center;
          }

          Table
          {
          font-family: verdana,helvetica,arial,sans-serif;
          color: #555555;
          font-size: 16px;
          text-align: left;
          border: 1px solid #555555;
          border-collapse: collapse;
          }

          table td
          {
          padding: 5px;
          }
          td.columnStatus
          {
          text-align: center;
          }

          .ServerDetailTitle
          {
          color: #260859;
          font-size: 1.1em;
          font-weight: normal;
          margin: 20px 0 20px;
          padding: 3 3 3 3;
          width: 100%;
          border-bottom: 1px solid #260859;
          }

          .ComponentDetailTitle
          {
          color: #260859;
          font-size: 1.1em;
          font-weight: bold;
          }

          .DeploymentActions
          {
          font-weight: bold;
          }

          .ResultDetail
          {
          width: 100%;
          margin-bottom: 20px;
          }

          .ResultDetailTitle
          {
          width:100%;
          color: #260859;
          font-size: 1em;
          font-weight: normal;
          padding: 3 3 3 3;
          background-color: #C0C0C0;
          display: inline-block;
          border: 1px solid #260859;
          }


          .ResultsTable
          {
          width:100%;
          border: 1px solid #260859;
          }

          table.ResultDetail tr:nth-child(even)
          {
          background: #99FFFF;
          }
          table.ResultDetail tr:nth-child(odd)
          {
          background: #FFFFFF;
          }

          .outputCommand
          {
          color: #260859;
          }
          .attributeName, .attributeSeparator
          {
          font-weight:bold;
          }


          .success
          {
          color: #00FF00;
          }

          .Failure
          {
          color: #FF0000;
          }


        </style>

        <div class="HeaderDeploymentLog">
          <span>
            Application Deployment servers list for <xsl:value-of select="$ApplicationFriendlyName" />
          </span>
        </div>

        <div class="layout">

          <table border="1">
            <th>Host name</th>

            <xsl:apply-templates select="//servers/server" />

          </table>

        </div>
      </body>
    </html>

  </xsl:template>


  <!-- Create the deployment Target to use with applicationManagement Module v2-->
  <xsl:template match="//servers/server">

    <tr>
      <td>
        <xsl:value-of select="@name"/>
      </td>
    </tr>

  </xsl:template>

</xsl:stylesheet>
